home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / rtlinc.exe / PROCESS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-26  |  2.5 KB  |  102 lines

  1. /*_ process.h   Tue May 29 1990   Modified by: Walter Bright */
  2. /* OS2 support added by Nikki Locke May 1989 */
  3. /* Copyright (C) 1988-1990 by Walter Bright    */
  4. /* All Rights Reserved                    */
  5. /* Written by Walter Bright                */
  6.  
  7. #if __cplusplus
  8. extern "C" {
  9. #endif
  10.  
  11. #ifdef __STDC__
  12. #define __CDECL
  13. #define __STDCALL
  14. #else
  15. #define __CDECL __cdecl
  16. #define __STDCALL __stdcall
  17. #endif
  18.  
  19. #if __OS2__ && __INTSIZE == 4
  20. #define __CLIB    __STDCALL
  21. #else
  22. #define __CLIB    __CDECL
  23. #endif
  24.  
  25. #ifdef _WINDOWS
  26.           void __CLIB exec_showset(unsigned short style); /* set client window SHOW style used be spawn, system, etc. */
  27.           void __CLIB exec_showreset(void);         /* reset SHOW style to default (SW_SHOW) */
  28. unsigned short __CLIB exec_showget(void);         /* get current SHOW style setting */
  29. #endif
  30.  
  31. void __CLIB _c_exit(void);
  32. void __CLIB _cexit(void);
  33. void __CLIB _exit(int);
  34. void __CLIB _dodtors(void);
  35. int __CLIB getpid(void);
  36. #define _getpid getpid
  37.  
  38. int __CDECL spawnl(int,const char *,const char *,...);
  39. int __CLIB spawnv(int,const char *,const char * const *);
  40. int __CDECL spawnlp(int,const char *,const char *,...);
  41. int __CLIB spawnvp(int,const char *,const char * const *);
  42.  
  43. #define _spawnl spawnl
  44. #define _spawnv spawnv
  45. #define _spawnlp spawnlp
  46. #define _spawnvp spawnvp
  47.  
  48. /* mode values for spawn?? */
  49. #define P_WAIT 0
  50. #define P_NOWAIT 1
  51. #define P_SAVEEXIT 2
  52. #define P_DETACHED 4
  53.  
  54. int __CLIB execl(const char *,const char *,...);
  55. int __CLIB execv(const char *,const char * const *);
  56. int __CLIB execlp(const char *,const char *,...);
  57. int __CLIB execvp(const char *,const char * const *);
  58. #define _execl execl
  59. #define _execv execv
  60. #define _execlp execlp
  61. #define _execvp execvp
  62.  
  63. #if defined(M_UNIX) || defined(M_XENIX)
  64. int __CLIB fork(void);
  65. int __CLIB execle(const char *path,const char *arg1,...);
  66. int __CLIB execve(const char *command, const char *command_line[],
  67.                   const char *environment[]);
  68. #endif
  69.  
  70. /* action codes used with cwait() */
  71.  
  72. #define WAIT_CHILD 0
  73. #define WAIT_GRANDCHILD 1
  74.  
  75. int __CLIB cwait(int *,int,int);
  76. int __CLIB wait(int *);
  77.  
  78. #ifdef _MT
  79. #if __NT__
  80.  
  81. int __CLIB _beginthread(void (__CLIB *)(void *),unsigned,void *);
  82. void __CLIB _endthread(void);
  83.  
  84. #elif __INTSIZE == 4
  85.  
  86. int __CLIB _beginthread(void (__CLIB *)(void *),unsigned,void *);
  87. void __CLIB _endthread(void);
  88.  
  89. #else
  90. int __CLIB _beginthread(void (__far *)(void __far *),
  91.     void __far *, unsigned,void __far *);
  92. void __CLIB _endthread(void);
  93.  
  94. #endif
  95. #endif
  96.  
  97. #ifdef __cplusplus
  98.   }
  99. #endif
  100.  
  101.  
  102.